import { useRouter } from '@/constants/router';

const router = useRouter();

export const toTabbar = (url: string) => {
  return router.switchTab({
    url
  });
};

export const toPage = (url: string) => {
  return router.navigateTo({
    url
  });
};
